#pragma once
#ifndef NUM_CHANNELS
#define NUM_CHANNELS 3
#endif

#include "fmod.hpp"
#include "fmod_errors.h"
#include <stdio.h>
#include <stdlib.h>

class Audio
{
public:
	//Audio(void);
	//~Audio(void);

	FMOD::System *fmodSystem;
	FMOD_RESULT result;

	char name[256];

	FMOD::Channel *channel;

	FMOD::Sound *soundtrack;
	FMOD::Sound *sound1;
	FMOD::Sound *sound2;

	int tick;

	void initializeSound();
	void updateSound();
	void loadSounds();

	void playSoundtrack();
	void playSound1();
	void playSound2();
	void stopSound1();
	int getTick();
	void setTick(int t);

	void FmodErrorCheck(FMOD_RESULT result);

};

